package novel.mzx.com.activity;

import android.widget.ImageView;

import com.bumptech.glide.Glide;

import java.util.ArrayList;

import butterknife.BindView;
import novel.mzx.com.R;
import novel.mzx.com.base.BaseActivity;

/**
 * 图片显示页面
 * */

public class PhotoViewActivity extends BaseActivity {
    @BindView(R.id.iv_bg)
    ImageView imageView;

    @Override
    protected int getResourceId() {
        return R.layout.activity_photo_view_layout;
    }

    @Override
    protected void initView() {
        super.initView();
        String imageUrl = getIntent().getStringExtra("imageUrl");
        ArrayList<String> list = new ArrayList<>();
        list.add(imageUrl);

        Glide.with(this).load(imageUrl).into(imageView);
    }
}
